package qc.module.platform.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.platform.dto.db.DBDto;
import qc.module.platform.entity.QcDb;

import java.util.List;

/**
 * DBMapper
 *
 * @author QuCheng Tech
 * @since 2024/2/1
 */
@Mapper
public interface DBMapper {
    DBMapper MAPPER = Mappers.getMapper(DBMapper.class);

    QcDb toEntity(DBDto dto);

    DBDto toDto(QcDb en);

    List<DBDto> toDtoList(List<QcDb> list);
}
